--
-- Author: xuzhihui
-- Date: 2016-03-15 09:00:00
--
-- 事件基类
local EventBase = class("EventBase")

function EventBase:ctor(id)
	self.eventId = id
end

-- 清理
function EventBase:Dispose()

end

function EventBase:Send()
	me.framework:SendEvent(self)
end

function EventBase:Post(delay)
	me.framework:PostEvent(self, delay)
end

-- 静态
function EventBase.SendBase(id)
	EventBase.new(id):Send()
end

function EventBase.PostBase(id, delay)
	EventBase.new(id):Post(delay)
end

return EventBase